package com.simple.datax.flow.service.impl;
import com.simple.datax.cache.TaskCacheBean;
import com.simple.datax.flow.dao.ibatis.FlowDao;
import com.simple.datax.flow.dao.ibatis.FlowInstanceDao;
import com.simple.datax.flow.dao.ibatis.model.Flow;
import com.simple.datax.flow.dao.ibatis.model.FlowInstance;
import com.simple.datax.flow.service.FlowManager;

/** 
 * @Title: FlowManagerImpl.java 
 * @Package com.simple.datax.flow.service.impl 
 * @Description: TODO(添加描述) 
 * @author tonney 
 * @date 2012-12-31 上午11:17:59 
 * @version V1.0 
 */

public class FlowManagerImpl implements FlowManager {
    private FlowDao flowDao;

	private FlowInstanceDao flowInstanceDao;
    
	private TaskCacheBean taskCache;

	public void setFlowInstanceDao(FlowInstanceDao flowInstanceDao) {
		this.flowInstanceDao = flowInstanceDao;
	}

	public void setTaskCache(TaskCacheBean taskCache) {
		this.taskCache = taskCache;
	}

	public void setFlowDao(FlowDao flowDao) {
		this.flowDao = flowDao;
	}

	@Override
	public Flow getFlowById(String flowid) {
		return flowDao.getFlowById(flowid);
	}
}
